<%@ taglib prefix="s" uri="/struts-tags"%>

<!-- action="updateBannersFees.htm" -->
<s:form action="addBannerSettings.htm" theme="simple" method="post" id="form">
	<table width="100%">
		<tr>
			<td height="40" class="sectionheading bottom-border">
				Banner Format Settings
			</td>
		</tr>
		<tr>
			<td valign="top" width="100%">
				<table width="100%" border="0" cellpadding="1" cellspacing="1">
					<tr>
						<td colspan="2">
							<s:actionerror cssClass="Note-red" />
							<s:actionmessage cssClass="verdana11greynormal" />
						</td>
					</tr>
					<tr>
						<td align="right" class="verdana12blacknormal">
							Banner format name :
						</td>
						<td>
							<s:textfield name="bannerSettings.formatName" value="%{bannerSettings.formatName}" cssClass="Textfiled-border" />
						</td>
					</tr>
					<tr>
						<td align="right" class="verdana12blacknormal">
							Number of Banners :
						</td>
						<td>
							<s:textfield name="bannerSettings.noOfFormat" value="%{bannerSettings.noOfFormat}" cssClass="Textfiled-border" />
						</td>
					</tr>
					<tr>
						<td align="right" class="verdana12blacknormal">
							Type :
						</td>
						<td>
							<s:select theme="simple" name="bannerSettings.type" cssClass="Textfiled-border" value="%{bannerSettings.type}"
								list="#{'1':'fix width - variable height','2':'variable width - fix height','3':'fix width and height'}" />
						</td>
					</tr>
					<tr>
						<td align="right" class="verdana12blacknormal">
							(Max) Width [px] :
						</td>
						<td>
							<s:textfield name="bannerSettings.maxWidth" value="%{bannerSettings.maxWidth}" cssClass="Textfiled-border" />
						</td>
					</tr>
					<tr>
						<td align="right" class="verdana12blacknormal">
							(Max) Height [px] :
						</td>
						<td>
							<s:textfield name="bannerSettings.maxHieght" value="%{bannerSettings.maxHieght}" cssClass="Textfiled-border" />
						</td>
					</tr>
					<tr>
						<td align="right" class="verdana12blacknormal">
							Base width/height [px] :
						</td>
						<td>
							<s:textfield name="bannerSettings.baseHieghtWidth" value="%{bannerSettings.baseHieghtWidth}" cssClass="Textfiled-border" />
						</td>
					</tr>
					<tr>
						<td align="right" class="verdana12blacknormal">
							Text below :
						</td>
						<td>
							<s:checkbox name="bannerSettings.textBelow" value="%{bannerSettings.textBelow}" cssClass="Textfiled-border" />
						</td>
					</tr>
					<tr>
						<td align="right" class="verdana12blacknormal">
							3rd Party Click-Tracking Support :
						</td>
						<td>
							<s:checkbox name="bannerSettings.trackingSupport" value="%{bannerSettings.trackingSupport}" cssClass="Textfiled-border" />
						</td>
					</tr>
					<tr>
						<td align="right" class="verdana12blacknormal">
							Link Target :
						</td>
						<td>
							<s:select theme="simple" name="bannerSettings.linkTarget" cssClass="Textfiled-border"
								headerKey="0" list="#{'_blank':'new window','_parent':'same window'}" />
						</td>
					</tr>
					<tr>
						<td align="right" class="verdana12blacknormal">
							Description :
						</td>
						<td>
							<s:textarea name="bannerSettings.description" value="%{bannerSettings.description}" cols="50" rows="7" theme="simple" cssClass="Textfiled-border" />
						</td>
					</tr>
					<tr>
						<td align="right" class="verdana12blacknormal">
							Enabled :
						</td>
						<td>
							<s:checkbox name="bannerSettings.enable" value="%{bannerSettings.enable}" cssClass="Textfiled-border" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td align="center" width="100%">
				<s:hidden name="bannerSettings.id" value="%{bannerSettings.id}" />
				<s:submit theme="simple" type="image"
					src="../Admin-Images/save_btn.gif" value="Save Changes" />
				<img style="cursor: pointer;"
					onclick="document.getElementById('form').reset();"
					src="../Admin-Images/reset-button.gif" alt="Reset" title="Reset">
				<img onclick="history.go(-1);" src="../Admin-Images/cancel_btn.gif"
					alt="Cancel">
			</td>
		</tr>
	</table>
</s:form>